<!-- Bojan Karlas -->				
                <div class="dashes-top"></div>
            	<div class="dashes-bottom"></div>
                <h3> Административни панел </h3>
                
                <div class="scroll-container" style="height:300px">
                
                <script type="text/javascript">
					function osveziPanel() {
						if (window.XMLHttpRequest)
  						{// code for IE7+, Firefox, Chrome, Opera, Safari
							refreshReq=new XMLHttpRequest();
						}
						else
						{// code for IE6, IE5
							refreshReq=new ActiveXObject("Microsoft.XMLHTTP");
  						}
						refreshReq.open("GET","insert/adminpanel.php",true);
						refreshReq.onreadystatechange=function()
  						{
  							if (refreshReq.readyState==4)
    						{
								
								if (xmlhttp.status==200) {
	    							document.getElementById("adminpanel").innerHTML=refreshReq.responseText;
								} else osveziPanel();
								
    						}
							
  						}
						refreshReq.send();
					}
				
					function ukloniPrijavu(idPrijave) {
						if (window.XMLHttpRequest)
  						{// code for IE7+, Firefox, Chrome, Opera, Safari
							xmlhttp=new XMLHttpRequest();
						}
						else
						{// code for IE6, IE5
							xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
  						}
						xmlhttp.open("POST","phpscripts/obrisi_prijavu.php",true);
						xmlhttp.onreadystatechange=function()
  						{
  							if (xmlhttp.readyState==4)
    						{
								osveziPanel();
								
    						}
							
  						}
						xmlhttp.setRequestHeader("Content-type", "application/x-www-form-urlencoded");
						xmlhttp.send("idPrijave=" + idPrijave);
					}
				</script>
                
                <?php
                	
					include("konekcija_sa_bazom.php");
					
					mysql_query("SET NAMES utf8");
					$result = mysql_query("SELECT * FROM prijava");
                	mysql_close();
					while($row = mysql_fetch_array($result))
  					{
						echo '<div class="scroll-elem-bar">';
						echo $row['tekst'];
						echo '<br/>';
						echo '<a style="font-size:14px;" href="' . $row['url'] . '">Прикажи</a>&emsp;';
						echo '<a style=" cursor:pointer; font-size:14px" onclick="ukloniPrijavu(' . $row['idPrijava'] . ' )">Решено</a>';
						echo "<br />";
						
						echo '</div>';
					}
					
					
                ?>
				
                </div><br/>